package com.rljk.domain.po;

import com.alibaba.fastjson.JSONObject;
import com.rljk.common.consts.AssetConst;
import com.rljk.utils.Tools;
import com.tencent.trustsql.sdk.TrustSDK;
import com.tencent.trustsql.sdk.util.SignStrUtil;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import java.util.Map;
import java.util.SortedMap;
import java.util.TreeMap;

/**
 * Author:   YASUO
 * Date:     2018/7/26 17:40
 * Description:身份管理
 */
@Slf4j
@Data
public class TrustSqlIdentify {

    private SortedMap<String,Object> map;
    private  JSONObject reqData;

    public TrustSqlIdentify() {
    }

    public TrustSqlIdentify(JSONObject reqData) {
        map = new TreeMap<String, Object>();
        map.put("mch_id", AssetConst.mch_id);
        map.put("product_code",AssetConst.product_code);
        map.put("req_data",reqData.toJSONString());
        log.info("请求业务参数req_data："+reqData.toJSONString());
        map.put("seq_no", Tools.uuid());//请求流水号
        map.put("time_stamp",System.currentTimeMillis()/1000);
        map.put("type",AssetConst.type);
        this.reqData = reqData;
    }
}
